{{ define "layouts/status.html" }}
<script type="text/html" id="status-switchTpl">
  {{  " {{#  if(d.status == 1){ }} "  }}
  <input type="checkbox" name="status" lay-skin="switch" lay-text="开启|关闭" lay-filter="status-switch"
         value='{{ "{{ d.id }}" }}' checked>
  {{ " {{# }else{ }} " }}
  <input type="checkbox" name="status" lay-skin="switch" lay-text="开启|关闭" lay-filter="status-switch"
         value='{{ "{{ d.id }}" }}' >
  {{  " {{#  } }} "  }}
</script>
{{ end }}